var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var LoadingManager = require("AA_LoadingManager");
var TipsManager = require("AA_TipsManager");
var UIManager = require("AA_UIManager");
var UIView = require("AA_UIView");
var GuideControl = require("AA_GuideControl");
var YpNetMag = require("AA_YpNetMag");
var GameDataManager = require("AA_GameDataManager");
var NodePoolMag = require("AA_NodePoolMag");
var ModuleManager = require("AA_ModuleManager");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;

var _def_UI_GameDeBug = function (e) {
  function _creator() {
    return null !== e && e.apply(this, arguments) || this;
  }
  __extends(_creator, e);
  _creator.prototype._show = function (e) {
    var t = [];
    for (var o = 1; o < arguments.length; o++) {
      t[o - 1] = arguments[o];
    }
  };
  _creator.prototype.onResetData = function () {
    var e = this;
    LoadingManager.LoadingMgr.show();
    YpNetMag.YpNetMag.cleanData(function () {
      e.scheduleOnce(function () {
        if (window.tt) {
          if (window.tt && window.tt.restartMiniProgramSync) {
            window.tt.restartMiniProgramSync();
          } else {
            window.tt.exitMiniProgram({
              isFullExit: true
            });
          }
        } else if (window.wx) {
          window.wx.restartMiniProgram();
        } else if (cc.sys.isBrowser) {
          GameDataManager.GameDataMgr.resetData();
          UIManager.default.closeAll();
          ModuleManager.ModuleMgr.cleanModule();
          GuideControl.GuideCtrl.cleanGuide();
          NodePoolMag.NodePoolMag.instance.clearAllNode();
          TipsManager.TipMgr.cleanToast();
          cc.director.loadScene("entry");
        }
        LoadingManager.LoadingMgr.hide();
      }, .5);
    });
  };
  _creator.prototype.onCloseView = function () {
    this._close();
  };
  return __decorate([_ccclass], _creator);
}(UIView.default);
exports.default = _def_UI_GameDeBug;